package com.timothy.millionaire;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.Window;

/**
 * Created by hp on 13-6-7.
 */
public class BaseActivity extends Activity {


    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //hide title bar
//        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
    }

    public void ShowDialog(String title,String msg) {
        new AlertDialog.Builder(this).setTitle(title).setMessage(msg)
        .setPositiveButton("OK", new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int which) {
            }
        }).show();
    }
}